<template>
  <div class="home-page container-md">
    <section class="py-5 text-center container">
       <div class="row py-lg-5">
          <div class="col-lg-6 cok-md-8 mx-auto">
            <img src="../assets/callout.svg" alt="callout" class="w-50">
            <h2 class="font-weight-light">随心写作,自由表达</h2>
            <p>
              <router-link to='/' class="btn btn-primary my-2">开心写文章</router-link>
            </p>
          </div>
       </div>
    </section>
    <h4 class="font-weight-bold text-center">发现精彩</h4>
    <ColumnList :list='testData' />
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { ColumnProps } from '../store/types.d'
import ColumnList from '@/components/ColumnList.vue'
export default defineComponent({
  name: 'Home',
  components: {
    ColumnList
  },
  setup () {
    const testData: ColumnProps[] = [
      {
        id: 1,
        title: 'test1的专栏',
        description: '这是的test1专栏，有一段非常有意思的简介，可以更新一下欧',
        avatar: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
      },
      {
        id: 2,
        title: 'test2的专栏',
        description: '这是的test2专栏，有一段非常有意思的简介，可以更新一下欧',
        avatar: 'http://vue-maker.oss-cn-hangzhou.aliyuncs.com/vue-marker/5ee22dd58b3c4520912b9470.jpg?x-oss-process=image/resize,m_pad,h_100,w_100'
      }
    ]

    return {
      testData
    }
  }
})
</script>
